package com.heima.article.controller.v1;

import com.heima.article.service.ApCollectionService;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP收藏信息表 前端控制器
 * </p>
 *
 * @author itheima
 */
@Slf4j
@RestController
@RequestMapping("/api/v1")
public class ApCollectionController {

    @Autowired
    private ApCollectionService  apCollectionService;
    @PostMapping("/collection_behavior")
    public ResponseResult collectionArticle(@RequestBody CollectionBehaviorDto collectionBehaviorDto){
        return apCollectionService.collectionArticle(collectionBehaviorDto);
    }
}
